/**
 * 
 */
package site.entity;

import neoutil.CommonEntity;

/**
 * @author Neo
 * 
 */
public class Category extends CommonEntity {
	/**
	 * 最新动态
	 */
	public static final int LATEST_NEWS = 1;
	/**
	 * 新闻头条（首页大图）
	 */
	public static final int HEAD_NEWS = 2;
	/**
	 * 通知公告
	 */
	public static final int LATEST_NOTICE = 3;
	/**
	 * 行业资讯
	 */
	public static final int HYZX = 4;
	/**
	 * 企业风采
	 */
	public static final int QYFC = 5;
	/**
	 * 技术创新
	 */
	public static final int JSCX = 6;
	/**
	 * 质量检测
	 */
	public static final int ZLJC = 7;
	/**
	 * 技术合作
	 */
	public static final int JSHZ = 8;
	/**
	 * 设备共享
	 */
	public static final int SBGX = 9;
	/**
	 * 招商引资
	 */
	public static final int ZSYZ = 10;
	/**
	 * 技术培训
	 */
	public static final int JSPX = 11;
	/**
	 * 产品展示
	 */
	public static final int CPZS = 12;
	/**
	 * 信息发布
	 */
	public static final int XXFB = 13;
	/**
	 * 求职招聘
	 */
	public static final int QZZP = 14;

	public static final int TYPE_BUILT_IN = 1;
	public static final int TYPE_USER_ADDED = 2;

	public static final int LEVEL_TOP = 1;
	private int cid;
	private String name;
	private int parentCid;
	private int level = LEVEL_TOP;
	private int type = TYPE_USER_ADDED;

	public Category() {
		super();
	}

	public Category(int cid, String name) {
		super();
		this.cid = cid;
		this.name = name;
		this.parentCid = cid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public int getParentCid() {
		return parentCid;
	}

	public void setParentCid(int parentCid) {
		this.parentCid = parentCid;
	}

}
